@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
    --primary-color: #00aeef;
    --background-color: #f8f9fa;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-color: #555;
    --heading-color: #333;
    --border-color: #e0e0e0;
    --high-alert: #fee2e2;
    --high-alert-text: #dc2626;
    --moderate-alert: #fef3c7;
    --moderate-alert-text: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    padding: 20px;
    height: 100vh;
    border-right: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo img {
    width: 100%;
    height: 100%;
    margin-right: 10px;
}

.logo span {
    font-weight: 700;
    font-size: 20px;
    color: var(--heading-color);
}

.menu ul {
    list-style: none;
}

.menu li {
    margin-bottom: 20px;
}

.menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.menu a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.menu li.active a,
.menu a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.main-content {
    flex-grow: 1;
    padding: 30px;
    background: linear-gradient(135deg, #e0f7fa 0%, #f8f9fa 100%);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    color: var(--heading-color);
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile span {
    margin-right: 15px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.stat-card h2 {
    font-size: 32px;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.stat-card.main-stat h2 {
    color: var(--high-alert-text);
}

.stat-card p {
    font-size: 14px;
    margin-bottom: 15px;
}

.stat-card .highlight-red {
    font-weight: bold;
    color: var(--high-alert-text);
}

.stat-card a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.bottom-content {
    display: flex;
    gap: 30px;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.left-column {
    flex: 2;
}

.right-column {
    flex: 1;
}

.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.alerts h3 {
    font-size: 28px;
}
.alerts > p {
    margin-bottom: 10px;
}
.alerts > a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.alert-list {
    margin-top: 20px;
}

.alert-list h4 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}
.alert-list .mark-read {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-color);
}

.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.alert-item:last-child {
    border-bottom: none;
}
.alert-item span {
    flex: 1;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    flex: 0 0 80px;
}

.badge.high {
    background-color: var(--high-alert);
    color: var(--high-alert-text);
}

.badge.moderate {
    background-color: var(--moderate-alert);
    color: var(--moderate-alert-text);
}

.contact-us h3,
.shop h3,
.faqs h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.contact-us p,
.shop p,
.faqs p {
    margin-bottom: 20px;
}

.contact-us a,
.shop a,
.faqs a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.email-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.email-button i {
    margin-right: 8px;
}

.phone-number {
    color: var(--text-color);
}
.phone-number i {
    margin-right: 8px;
}

.user-profile {
    position: relative;
}

.user-info {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-menu a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu a:hover {
    background-color: var(--background-color);
}

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    overflow: hidden;
    background-color: var(--border-color);
}

.dropdown-menu.show {
    display: block;
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f7fa 0%, #f8f9fa 100%);
    font-family: "Roboto", sans-serif;
}

.login-box {
    background: var(--card-bg, #ffffff);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    margin-bottom: 25px;
}

.login-logo img {
    max-width: 220px;
}

.login-box h2 {
    color: var(--heading-color, #333);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--text-color, #555);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color, #00aeef);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.password-wrapper {
    position: relative;
}

.password-wrapper i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color, #00aeef);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    opacity: 0.9;
}

.forgot-password {
    display: block;
    margin-top: 20px;
    color: var(--primary-color, #00aeef);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}
.main-content {
    background-color: #eef7f9;
}

.card {
    background-color: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: none;
}

h2 {
    color: var(--heading-color);
    font-size: 2.25rem;
    margin-bottom: 5px;
}

h3 {
    color: var(--heading-color);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- Stats Grid (Top Row) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-card p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.badge-red {
    display: inline-block;
    background-color: var(--high-alert, #fee2e2);
    color: var(--high-alert-text, #dc2626);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-note {
    font-size: 0.75rem;
    color: #999;
    margin-top: auto;
}

.card-actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-secondary,
.btn-tertiary {
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-color);
}

.btn-tertiary {
    color: var(--primary-color);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch; /* <-- Thêm dòng này */
}

.main-column {
    display: flex;
    flex-direction: column;
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Alerts Card --- */
.alerts-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.alert-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.alert-list-header h4 {
    font-size: 1rem;
    color: var(--heading-color);
}

.mark-as-read {
    font-size: 0.8rem;
    color: var(--text-color);
    text-decoration: none;
}

.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px;
    border-bottom: 1px solid var(--border-color);
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 110px;
    justify-content: center;
}

.alert-badge.high {
    background-color: var(--high-alert);
    color: var(--high-alert-text);
}

.alert-badge.moderate {
    background-color: var(--moderate-alert);
    color: var(--moderate-alert-text);
}

/* --- Contact Row --- */
.contact-card .contact-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.grouped-stats-card {
    grid-column: span 2;
}

.stat-group {
    display: flex;
    justify-content: space-around;
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    flex: 1;
    padding: 0 10px;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h2 {
    font-size: 2rem;
}

.stat-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.grouped-stats-card .card-note {
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.grouped-stats-card .card-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1200px) {
    .grouped-stats-card {
        grid-column: span 1;
    }
    .stat-item h2 {
        font-size: 1.75rem;
    }
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card.text-center {
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}
/* --- Tanks List Section --- */
.tanks-list {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color);
}

.search-bar input::placeholder {
    color: #b0b0b0;
}

.tanks-table {
    display: flex;
    flex-direction: column;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 15px;
    padding: 15px 0;
    align-items: center;
}

.table-header {
    font-weight: 500;
    color: var(--heading-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.table-row {
    border-bottom: 1px solid var(--border-color);
}

.table-row .actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 14px;
}

.add-btn {
    background-color: #38a169;
}

.edit-btn {
    background-color: #4299e1;
}

.delete-btn {
    background-color: #f56565;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    color: var(--text-color);
}

.pagination-arrows i {
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
    color: #b0b0b0;
}
/* --- Tanks Header Section --- */
.tanks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tanks-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: var(--heading-color);
}

.tanks-title i {
    color: var(--primary-color);
}

.tanks-header h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.add-new-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-new-btn:hover {
    background-color: #0099d4;
}

.form-card {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--heading-color);
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    color: var(--text-color);
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #008fbf;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    transition: opacity 0.5s ease-out;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
